package test;

import java.util.Random;

public class test_random {
    public static void main(String[] args) {
        int randomint = 0;
        int[] arr = new int[]{1, 2, 3, 4, 5};
        Random r = new Random();
        for (int i = 0; i < 5; i++) {
            randomint = r.nextInt(arr.length);
            System.out.println(randomint);
        }
    }
}
